package org.szy.plugin.gen.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import org.szy.core.common.page.QueryPage;
import org.szy.core.common.service.BaseService;
import org.szy.plugin.gen.entity.GenConfig;
import org.szy.plugin.gen.param.GenConfigQueryParam;

import java.io.Serializable;
import java.util.List;

/**
 * 生成配置 服务层。
 *
 * @author sunzhiyang
 * @since 2023-06-14
 */
public interface GenConfigService extends BaseService<GenConfig> {

    QueryWrapper qwByQuery(GenConfigQueryParam param);

    Page<GenConfig> page(QueryPage<GenConfig> page, GenConfigQueryParam param);

    boolean editBatch(List<GenConfig> genConfigList);

    /**
     * 根据 basicId删除数据
     *
     * @param basicId
     * @return 删除结果
     */
    boolean removeByBasicId(Serializable basicId);
}
